package tmooc._0505;

public class demo02 {
    public static void main(String[] args) {
/*
        for (int Num = 2;Num<=100;Num++){
            boolean  flag = true;
            for (int i  = 2;i<Num/2 ; i++){
                if (Num%i == 0){
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.print(Num + "\t");
            }
        }
        */

        /*
              for (int Num = 2;Num<=100;Num++){
            boolean  flag = true;
            for (int i  = 2;i<Num/2 ; i++){
                if (Num%i == 0){
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.print(Num + "\t");
            }
            }
         */
        for (int Num = 2;Num<=100;Num++){
            boolean  flag = true;
            for (int i  = 2;i<Num/2 ; i++){
                if (Num%i == 0){
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.print(Num + "\t");
            }
        }
    }
}
